package xkp.lesson1;

public class Demo1 {
	public static void main(String[] args) {
		Person person = new Person();
		//person.age = 30000;
		int age = 3000;
		person.setAge(age);
		MyInterface1 interface1 = new Children();//只能使用fun1()
		MyInterface2 interface2 = new Children();//只能使用fun2()
		Person person2 = new Children();//只能使用getAge/setAge
	}

}
